home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000006_icon-group-sender _Mon Sep 30 14:23:10 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 1 Oct 1996 08:22:18 MST
Date: Mon, 30 Sep 1996 14:23:10 -0700
From: Gregg Townsend <gmt>
Message-Id: <9609302123.AA32391@hawk.CS.Arizona.EDU>
To: jeffery@ringer.cs.utsa.edu, rjhare@ed.ac.uk
Subject: Re: Copying of irregular images
Cc: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
...you might have to do a little bit of work
to turn your drawn window into an image string, and then tweak that image
string to change all pixels drawn in a certain color into the transparent
color....
That should work, although it will be orders of magnitude slower than using
CopyArea().
Call Capture() to get a window portion as a string; call imsmap() to change
pixels of one color to a transparent marker ("~" or "\377") used by
DrawImage(); then call DrawImage() to write the pixels back.
(Capture() and imsmap() are in the library; link graphics, link imscolor.)
You'll need to be sure that the original "transparent" color remains
distinct when mapped to a palette by Capture().
Gregg Townsend / gmt@CS.Arizona.EDU / +1 520 621 4325 / 32 13 45N 110 57 16W
Computer Science / Univ of Arizona / 1040 E 4th St / Tucson AZ 85721-0077